//
//  LZRestaurantFiltersTextFiledCell.h
//  LzzizDemo
//
//  Created by xbnzd on 16/11/1.
//  Copyright © 2016年 xbnzd. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LZRestaurantsFilterTextFiledCellDelegate <NSObject>


/**
 for DatePicke 数据源情况下,点击textfiled.调用协议方法.直接返回数据源接受者
 */
- (void)ClickForDatePickerWithTextFiled:(UITextField *)textFiled;


/**
 textfiled 编辑完成后 返回

 */
- (void)textFiledEditEnd:(UITextField *)textFiled;

@end




@interface LZRestaurantFiltersTextFiledCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UITextField *LeftMinTextFiled;
@property (weak, nonatomic) IBOutlet UITextField *RightMaxTextFiled;

/**
 标记是否datepicker为数据源.如果是的话.点击textfiled 不再弹出键盘.而是调用协议方法
 */
@property (nonatomic, assign) BOOL isForDatePicker;
@property (nonatomic, weak) id<LZRestaurantsFilterTextFiledCellDelegate>textFiledCellDelegate;


/**
 填充左右textFiled placeholder

 */
- (void)setLeftTextFiledPlaceHolder:(NSString *)leftPHStr RightTextFiledPlaceHolder:(NSString *)rightPHStr;

- (void)loadDataLeft:(NSString *)lStt;

- (void)loadDataRight:(NSString *)rStr;


@end
